<?php

/*
 * This is an example script which shows how to initialize a login with
 * the lasso helper library.
 */

/* Load the lasso helper library. */
require_once('lasso.php');

/* Load the self_url function. */
require_once('self_url.php');

/* Get the url to the current directory. */
$url = dirname(lp_self_url(FALSE)) . '/';

/* Call the login initializer. This function will redirect the user to the IdP
 * for authentication. After being authenticated, the user will be redirected
 * to the url specified in the argument to lp_init_login.
 */
lp_init_login($url);

?>
